package com.itheima.test.test6;

public class user {
    //属性
    private String userName;
    private String password;
    private String email;
    private String gender;
    private int age;

    //空参
    public user(){}
    //带全部参数的构造
    public user(String userName, String password, String email, String gender, int age) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.gender = gender;
        this.age = age;
    }

    //get和setfangfa
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public String getUserName() {
        return userName;
    }
    public String getPassword() {
        return password;
    }
    public String getEmail() {
        return email;
    }
    public String getGender() {
        return gender;
    }
    public int getAge() {
        return age;
    }


}

//快捷键：alt+insert
//alt+fn+insert
//插件ptg一键生成标准javabean


//标准javabean：
//类名需要见名之意
//成员变量使用private修饰
//提供至少两个构造方法
//提供每一个成员变量对应的set和get

